import request from '@/utils/request'

// 查询订单操作记录列表
export function listOrderWorks(query) {
  return request({
    url: '/orderWorks/orderWorks/list',
    method: 'get',
    params: query
  })
}

// 查询订单操作记录详细
export function getOrderWorks(id) {
  return request({
    url: '/orderWorks/orderWorks/' + id,
    method: 'get'
  })
}

// 新增订单操作记录
export function addOrderWorks(data) {
  return request({
    url: '/orderWorks/orderWorks',
    method: 'post',
    data: data
  })
}

// 修改订单操作记录
export function updateOrderWorks(data) {
  return request({
    url: '/orderWorks/orderWorks',
    method: 'put',
    data: data
  })
}

// 删除订单操作记录
export function delOrderWorks(id) {
  return request({
    url: '/orderWorks/orderWorks/' + id,
    method: 'delete'
  })
}
